package fr.cephb.operonj.core.je;

import com.sleepycat.bind.tuple.TupleBinding;
import com.sleepycat.je.DatabaseConfig;
import com.sleepycat.je.DatabaseException;
import com.sleepycat.je.Environment;
import com.sleepycat.je.Transaction;

public class DefaultPrimaryDB<K, V> extends PrimaryDB<K, V>
	{
	private TupleBinding<K> keyBinding;
	private TupleBinding<V> valueBinding;
	public DefaultPrimaryDB(Environment env, Transaction txn,
			String databaseName, DatabaseConfig dbConfig,
			TupleBinding<K> keyBinding,
			TupleBinding<V> valueBinding
			)
			throws DatabaseException
		{
		super(env, txn, databaseName, dbConfig);
		this.keyBinding=keyBinding;
		this.valueBinding=valueBinding;
		}

	@Override
	public TupleBinding<K> getKeyBinding()
		{
		return keyBinding;
		}

	@Override
	public TupleBinding<V> getValueBinding()
		{
		return valueBinding;
		}

	}
